package org.geektimes.web.context;

import org.geektimes.context.ClassicComponentContext;
import org.geektimes.web.WebApplicationInitializer;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * 启动组件上下文（IOC）
 * @author tom
 * @since 2021/3/30 14:23
 */
public class ComponentContextInitializer implements WebApplicationInitializer {

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        ClassicComponentContext context = new ClassicComponentContext();
        context.init(servletContext);
    }
}
